package cn.edu.mju.dilidili.modules.reply.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 动态的评论表允许评论回复
 * </p>
 *
 * @author l
 * @since 2022-09-24
 */
@Getter
@Setter
@ApiModel(value = "Reply对象", description = "动态的评论表允许评论回复")

public class Reply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论所回复的动态")
    private Integer dynamicId;

    @ApiModelProperty("评论所回复的评论, 如果没有, 即是某个动态的直接回复, 就置空")
    private Integer replyId;

    @ApiModelProperty("评论的作者")
    private Integer authorId;

    @ApiModelProperty("评论的时间")
    private Date creationTime;

    @ApiModelProperty("踩数量")
    private Integer hateNumber;

    @ApiModelProperty("赞数量")
    private Integer actionNumber;


}
